//
//  Message1TableViewCell.m
//  享动
//
//  Created by 沈浩hh on 16/4/6.
//  Copyright © 2016年 HHUI. All rights reserved.
//

#import "Message1TableViewCell.h"
@interface Message1TableViewCell ()


@property (weak, nonatomic) IBOutlet UILabel *detailsLbael;
@property (weak, nonatomic) IBOutlet UILabel *type;

@property (weak, nonatomic) IBOutlet UILabel *title;
@end
@implementation Message1TableViewCell

- (void)setModel:(Message1Model *)model
{

    if (KHEIGHT == 568) {
        _title.font = [UIFont systemFontOfSize:14];
        _detailsLbael.font = [UIFont systemFontOfSize:12];
    } else if (KHEIGHT == 480) {
        _title.font = [UIFont systemFontOfSize:12];
        _detailsLbael.font = [UIFont systemFontOfSize:11];
    } else if (KHEIGHT == 736) {
        _title.font = [UIFont systemFontOfSize:16];
        _detailsLbael.font = [UIFont systemFontOfSize:14];
        _type.font = [UIFont systemFontOfSize:11];
    }
    [_icon sd_setImageWithURL:[NSURL URLWithString:model.cover_img]];
    _title.text = model.title;
    _detailsLbael.text = model.sub_title;
    
    _type.layer.borderColor = [UIColor colorWithRed:70 / 255.0 green:139 / 255.0 blue:1 alpha:1].CGColor;//边框颜色,要为CGColor
    _type.layer.borderWidth = 0.5;//边框宽度
    _type.layer.cornerRadius = 2;
    
    _type.text = model.subject_name;
}


- (void)awakeFromNib {
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
